﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Weight.Dal;
using Weight.Model;

namespace Weight.Bll
{
    public class BllField
    {
        /// <summary>
        /// 获取字段和别名对应关系
        /// </summary>
        /// <returns></returns>
    

        public IEnumerable<FieldEntity> GetAllTableField()
        {
            return new DalField().GetFieldAlias(); 
        }

        /// <summary>
        /// 获取字段通过表名
        /// </summary>
        /// <param name="tableName">表名</param>
        /// <returns></returns>
        public IEnumerable<FieldEntity> GetFieldByTable(string tableName)
        {
            return new DalField().GetFieldByTable(tableName);
        }
    }
}
